import request from '@/utils/request'

// 查询服务申请列表
export function listServeApplication(query) {
  return request({
    url: '/member/serveApplication/list',
    method: 'get',
    params: query
  })
}

// 查询服务申请详细
export function getServeApplication(id) {
  return request({
    url: '/member/serveApplication/' + id,
    method: 'get'
  })
}

// 新增服务申请
export function addServeApplication(data) {
  return request({
    url: '/member/serveApplication',
    method: 'post',
    data: data
  })
}

// 修改服务申请
export function updateServeApplication(data) {
  return request({
    url: '/member/serveApplication',
    method: 'put',
    data: data
  })
}

// 删除服务申请
export function delServeApplication(updateTime) {
  return request({
    url: '/member/serveApplication/' + updateTime,
    method: 'delete'
  })
}

// 导出服务申请
export function exportServeApplication(query) {
  return request({
    url: '/member/serveApplication/export',
    method: 'get',
    params: query
  })
}
